package com.xingxuecn.limit.dao;

import com.xingxuecn.limit.common.model.dto.User;
import com.xingxuecn.limit.common.model.vo.Page;

import java.sql.SQLException;
import java.util.List;

/**
 * @author Kris at 2018/9/13 10:41
 */
public interface UserDao{

    Page<User> searchPage(User user, Integer page, Integer rows) throws SQLException;
    List<User> search(User user, Integer... limit) throws SQLException;

    int add(User user) throws SQLException;

    int update(User user) throws SQLException;

    int delete(Integer id) throws SQLException;

    int count(User user) throws SQLException;
}
